package com.masterclient.app.modules.order.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eoner.baselibrary.bean.order.StorageOrderItemBean;
import com.masterclient.app.R;

/**
 * @auther hjian
 * @date 2020/10/20.
 */
public class StorageOrderAdapter extends BaseQuickAdapter<StorageOrderItemBean, BaseViewHolder> {

    public StorageOrderAdapter() {
        super(R.layout.item_storage_order);
    }

    @Override
    protected void convert(BaseViewHolder helper, StorageOrderItemBean item) {
        helper.setText(R.id.item_storage_order_no, item.getOrder_no())
                .setText(R.id.item_storage_order_title, item.getOrder_title())
                .setText(R.id.item_storage_order_time, item.getShow_at())
                .addOnClickListener(R.id.item_storage_order_bnt);
    }
}
